<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictGroupList" checkbox="false" fitColumns="true" title="补课申请" actionUrl="MakupLessonController.do?courseListDatagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="10"></t:dgCol>
   <t:dgCol title="学期"  query="false" field="semester" hidden="true" queryMode="single"  width="90"></t:dgCol>
   <t:dgCol title="周次"  field="weekNumber"  queryMode="single"  width="50"></t:dgCol> 
   <t:dgCol title="班级"  field="className"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="日期"  field="courseDate" formatter="yyyy-MM-dd"  queryMode="single"  width="100"></t:dgCol>
   <t:dgCol title="上课节次"  field="courseOrderName"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="人数"  field="peopleCount"   queryMode="single"  width="60"></t:dgCol>
   <t:dgCol title="实验课程"  field="lessonInfo.lessonName"   queryMode="single" query="true"  width="120"></t:dgCol>
   <t:dgCol title="实验项目"  field="teachItem.itemName"   queryMode="single"  query="true" width="120"></t:dgCol>
   <t:dgCol title="任课教师"  field="teacher.realName"   queryMode="single"  width="80"></t:dgCol>
   <t:dgCol title="实验室"  field="lab.name"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="房间"  field="lab.roomNo"   queryMode="single"  width="80"></t:dgCol>
   
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt  funname="createApply(id)" title="申请补课"  />
   
   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
	 
 });
 
 
 function createApply(id){
	 $.dialog({
			content: 'url:'+'MakupLessonController.do?addApply&id='+id,
			zIndex: getzIndex(),
			lock : true,
			width:"400px",
			height: "400px",
			title:'申请补课',
			opacity : 0.3,
			cache:false,
			ok:function(){
				iframe = this.iframe.contentWindow;
				saveObj();
				return false;
			},
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/
		});	
		 
 } 
 
 </script>